package cn.xo68.ide.plugin.common.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public interface JobCallback {

    static final Logger logger = LoggerFactory.getLogger(JobCallback.class);

    default void progress(){
        //logger.info("任务进度汇报");
    }
    default void success(){
        logger.info("任务执行成功");
    }
    default void fail(Throwable e){
        logger.error("任务执行异常",e);
    }
}
